package com.jiaquyun.jcyx.jetpack.api

import com.jiaquyun.jcyx.base.BaseManager
import com.module.lemlin.http.HttpResponseData
import rxhttp.RxHttp
import rxhttp.await

class CommonRepository : BaseManager() {

    /**
     * 系统配置
     * */
    suspend fun commonSysConfig(): HttpResponseData =
        RxHttp.postForm("/api/common/sysConfig")
            .await()

    /**
     * 分享配置
     * */
    suspend fun commonGetSignPackage(): HttpResponseData =
        RxHttp.postForm("/api/common/getSignPackage")
            .await()

    /**
     * 全部地址
     * */
    suspend fun commonTotalArea(): HttpResponseData =
        RxHttp.postForm("/api/common/totalArea")
            .await()
}